interface Props {
  id: string
  children: string[]
}

// Partial<T> 将T中所有属性设置为可选
type PartialProps = Partial<Props>

let p1: Props = { id: '1', children: ['a', 'b'] }

let p2: PartialProps = {
  id: '2',
  children: ['a', 'b']
}